package bb.lanxing.lib.devices.ble.ble.characteristic.light;

import bb.lanxing.lib.kt.ByteExtKt;
import kotlin.Metadata;

public final class LightMachineFlags {
    private final boolean BeamFocusDataPresent;
    private final boolean BeamModeDataPresent;
    private final boolean IndexDataPresent;
    private final boolean IntensityPresent;
    private final boolean ModeDataPresent;
    private final boolean TypeDataPresent;

    public LightMachineFlags(int i) {
        this.IndexDataPresent = ByteExtKt.bit2Boolean(i, 0);
        this.TypeDataPresent = ByteExtKt.bit2Boolean(i, 1);
        this.ModeDataPresent = ByteExtKt.bit2Boolean(i, 2);
        this.BeamModeDataPresent = ByteExtKt.bit2Boolean(i, 3);
        this.BeamFocusDataPresent = ByteExtKt.bit2Boolean(i, 4);
        this.IntensityPresent = ByteExtKt.bit2Boolean(i, 5);
    }

    public boolean getIndexDataPresent() {
        return this.IndexDataPresent;
    }

    public boolean getTypeDataPresent() {
        return this.TypeDataPresent;
    }

    public boolean getModeDataPresent() {
        return this.ModeDataPresent;
    }

    public boolean getBeamModeDataPresent() {
        return this.BeamModeDataPresent;
    }

    public boolean getBeamFocusDataPresent() {
        return this.BeamFocusDataPresent;
    }

    public boolean getIntensityPresent() {
        return this.IntensityPresent;
    }

    public String toString() {
        return "LightMachineFlags(IndexDataPresent=" + this.IndexDataPresent + ", TypeDataPresent=" + this.TypeDataPresent + ", ModeDataPresent=" + this.ModeDataPresent + ", BeamModeDataPresent=" + this.BeamModeDataPresent + ", BeamFocusDataPresent=" + this.BeamFocusDataPresent + ", IntensityPresent=" + this.IntensityPresent + ')';
    }
}
